package ormDemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by jack on 18/6/1.
 */

public class OrmTest {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(OrmConfig.class);
        Student s = (Student) context.getBean("student");
        System.out.println(s);
    }
}
